<template>
	<view class="yujing">
		<view class="status_bar">
		</view>
		<view class="yujing-word1">
		<image src="../../../static/yujing/back.png" mode="" @click="to_shouye"></image>
			<view class="word1-word">
				来电预警
			</view>
		</view>
		<view class="yujing-image1">
			<image src="../../../static/yujing/yujing1.png" mode=""></image>
		</view>
		<view class="yujing-word">
			<view class="yujing-word3">
				预警保护
			</view>
			<view class="yujing-word4">
				准确识别电信诈骗
			</view>
		</view>
		<view class="yujing-box">
			<view class="box-icon">
				<image src="../../../static/yujing/yujing2.png" mode=""></image>
			</view>
			<view class="box-word1">
				来电预警
			</view>
			<view class="box-word2">
				准确识别并预警诈骗来电
			</view>
			<view class="box-switch">
				<switch checked color="#46ac58" @change="switch1Change" />
			</view>
		</view>
		<view class="yujing-box">
			<view class="box-icon">
				<image src="../../../static/yujing/yujing3.png" mode=""></image>
			</view>
			<view class="box-word1">
				短信预警
			</view>
			<view class="box-word2">
				准确识别并预警诈骗短信
			</view>
			<view class="box-switch">
				<switch checked="true" color="#46ac58" @change="switch2Change" />
			</view>
		</view>
		
	</view>
</template>

<script>
	import UniStatusBar from '../../../components/uni-status-bar.vue'
	export default {
		components: {
			UniStatusBar
		},
		onLoad() {
	
		},
		onShow() {
	
		},
	
		data() {
			return {
				
	
			}
		},
		methods: {
			to_shouye(){
				uni.switchTab({
					url:"../shouye"
				})
			},
			switch1Change:function(e){
				if(e.detail.value){
					uni.showToast({
						title:"来电预警已开启"
					})
				}else{
					
					uni.showToast({
						title:"来电预警已关闭"
					})
				}
			},
			switch2Change:function(e){
				if(e.detail.value){
					uni.showToast({
						title:"短信预警已开启"
					})
				}else{
					
					uni.showToast({
						title:"短信预警已关闭"
					})
				}
			}
		}
	}
</script>

<style>
	page {
		background-image: url(@/static/yujing/yujingbg.png);
		background-repeat: no-repeat;
		background-attachment: fixed;
		background-size: 100% 100%;
	}
	*{
		padding: 0%;
		margin: 0%;
	}
	image{
		display: flex;
	}
	.yujing-word1{
		width: 90%;
		height: 100rpx;
		margin: auto;
		margin-top: 40rpx;
		position: relative;
		
	}
	.word1-word{
		color: white;
		font-size: 40rpx;
		text-align: center;
		letter-spacing: 15rpx;
		
	}
	.yujing-word1 image{
		width: 50rpx;
		height: 50rpx;
		margin-top: 10rpx;
		position: absolute;
		top: 0;
		left: 0;
	}
	.yujing-image1 image{
		width: 337rpx;
		height: 300rpx;
		margin: auto;
		margin-top:200rpx;
	}
	.yujing-box{
		width: 92%;
		height: 180rpx;
		border: #a6a6a6 1px solid;
		margin:80rpx auto;
		border-radius: 20rpx;
		box-shadow: #bcbcbc 5rpx 5rpx;
		position: relative;
		background-color: #ffffff;
	}
	.yujing-box image{
		width: 100rpx;
		height: 100rpx;
		position: absolute;
		top: 40rpx;
		left: 40rpx;
	}
	.box-word1{
		font-size: 50rpx;
		letter-spacing: 5rpx;
		position: absolute;
		top: 40rpx;
		left: 170rpx;
	}
	.box-word2{
		font-size: 25rpx;
		letter-spacing: 3rpx;
		color: #bebebe;
		position: absolute;
		top: 110rpx;
		left: 170rpx;
	}
	
	.yujing-word{
		width: 400rpx;
		height: 115rpx;
		margin:80rpx auto;
		text-align: center;font-weight: bold;
		letter-spacing: 5rpx;
	}
	.yujing-word3{
		font-size: 50rpx;
		
	}
	.yujing-word4{
		font-size: 20rpx;
		letter-spacing: 3rpx;
	}
	.box-switch{
		position: absolute;
		top: 60rpx;
		right: 40rpx;
	}
	.status_bar {
	        padding-top: var(--status-bar-height);
	        width: 100%;
			background-color: #356aae;
	    }
</style>